<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="vue.js"></script>
</head>
<body>
    <div id="div1"> 
        <h1 v-if="t">显示</h1> 
        <h1>{{ssg}}</h1>
        <input v-model="ssg">
        <h1>{{ ssg.split('').reverse().join('') }}</h1>
        
        
        <ul>
            <li v-for="x1 in xxs">
                {{x1.x}}
            </li>
        </ul>
    </div>


    <script>
        var vm = new  Vue({
            el:"#div1",
            data :{
                t : true,
                ssg : "hello",
                xxs :[
                    {x:1},
                    {x:2},
                ]
            }
        })
    </script>
</body>
</html>